package com.junbao.androidinterview.activity;

import android.content.Intent;

import androidx.fragment.app.FragmentTransaction;

import com.junbao.androidinterview.R;
import com.junbao.androidinterview.base.BaseActivity;
import com.junbao.androidinterview.fragment.HomeFragment;

/**
 *    author : Majunbao
 *    github : https://github.com/MaJunBaox
 *    time   : 2022/8/4 1:15 下午
 *    desc   : 安卓面试集锦
 */

public class MainActivity extends BaseActivity {


    @Override
    public int getLayoutId() {
        return R.layout.activity_main;
    }


    @Override
    protected void initView() {
        super.initView();
        startActivity(new Intent(this , RetrofitActivity.class));
        FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
        fragmentTransaction.add(R.id.fm_container , new HomeFragment());
        fragmentTransaction.commit();
    }
}